-
Notifications
You must be signed in to change notification settings - Fork 41
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
Error on $account = $twitterAds->getAccounts(ACCOUNT_ID); #27
Comments
Hi @panand363 It will be helpfull if you can tell me which are you using of the library and a piece of code to try to replicate it! Thanks! |
Hey ` $twAds = new TwitterAds(CONSUMER_KEY, CONSUMER_SECRET, ACCESS_TOKEN, ACCESS_TOKEN_SECRET);
I try either of the command ($twAds->getAccounts()) at one time and both give me the error. So basically with or without the ACCOUNT_ID . Many thanks for your time P Anand |
Hi @panand363 , I've checked this, and it looks like you are using bad credentials. I want to check a few things before. 1 - Is your app whitelisted by the Twitter Ads API team? If not, you should contact with them before. 2 - OWNER_ID is NOT the same as ACCOUNT_ID. ACCOUNT_ID is an hexadecimal code associated to an account, but is not the same. If you're not able to get your accounts with the second instruction:
It looks like the problem is in the first point. Could you check this? Thanks! |
Hi @hborras , i am new with Twitter and had no clue to start. But thanks for all the help. Regards |
@panand363 You're wellcome! So I'm going to close this issue! 👍 |
If I leave the ACCOUNT_ID empty, I still get the following error
Any help will be really appreciated.
`An uncaught Exception was encountered
Type: Hborras\TwitterAdsSDK\TwitterAds\Errors\Forbidden
Message: FORBIDDEN
Filename: /var/www/report-downloader/vendor/hborras/twitter-php-ads-sdk/src/TwitterAds.php
Line Number: 430
Backtrace:
The text was updated successfully, but these errors were encountered: