Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

List a tag's campaigns #88

Closed
yamsellem opened this issue May 6, 2015 · 3 comments
Closed

List a tag's campaigns #88

yamsellem opened this issue May 6, 2015 · 3 comments

Comments

@yamsellem
Copy link
Contributor

The following code:

(new AdTag($id))->getAdCampaigns($fields);

Returns this error:

(#275) Ad account cannot be determined for this request

Is there a way to limit the tag campaigns list to a given account to avoid this?
Are we supposed to add some permission to the account?

Bonus point: In the tag's docs, it's also said one can list every tags with https://graph.facebook.com/<API_VERSION>/act_<AD_ACCOUNT_ID>/adtags.
Is there a way to do so with this library? Account does not expose a getTags() method

Bonus point: is there a way to find a tag by name?

@pruno
Copy link
Contributor

pruno commented May 6, 2015

@yamsellem,

1- Are you sure you are providing a valid ad tag ID? if you could share your tag ID it will be easier to debug.
2 - I'll implement AdAccount::getAdTags()

pruno pushed a commit that referenced this issue May 6, 2015
Summary:
The SDK is missing the edge /act_<ACCOUNT_ID>/adtags
#88 - #88

Test Plan: ./vendor/bin/phpunit -c test/ test/FacebookAdsTest/Object/AdAccountTest.php
pruno pushed a commit that referenced this issue May 6, 2015
Summary:
The SDK is missing the edge /act_<ACCOUNT_ID>/adtags
#88 - #88

Test Plan: ./vendor/bin/phpunit -c test/ test/FacebookAdsTest/Object/AdAccountTest.php
@yamsellem
Copy link
Contributor Author

Thanks for your quick feedback, and for the getAdTags method ;-).

I'm sure to provide a valid tag ID because the Graph API explorer give me the same error (but I don't understand why). Here are two tag ids: 6031755244906 & 6031755226706.
The issue is also discussed here.

Bonus point: is there a way to find a tag by name?

@pruno
Copy link
Contributor

pruno commented May 6, 2015

As it appears to be an issue with the API i'll close here, feel free to reopen if necessary.
You can't search a tag by name: if you plan to make an extensively dynamic use of tags i suggest to store the ID-Name pair on your side and use to the API to fetch their content (or update it's associations).

@pruno pruno closed this as completed May 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants