Comments (4)
Can you tell me the error message? Have you enter a valid credit card in facebook billing form?
from facebook-php-business-sdk.
Hi @airdomain,
as mentioned by @minhsepteni, the details of the error you are facing are necessary to understand the issue. Few notes:
- in order to create an AdGroup, the parent AdAccount needs to have a valid payment method associated with it:
- to fully understand issues you need to catch the RequestException that the SDK throws:
use FacebookAds\Http\Exception\RequestException;
try {
// Your code here
} catch (RequestException $e) {
echo 'Caught Exception: '.$e->getMessage().PHP_EOL
.'Code: '.$e->getCode().PHP_EOL
.'HTTP status Code: '.$e->getHttpStatusCode().PHP_EOL
.'Error Subcode: '.$e->getErrorSubcode().PHP_EOL
.'Error User Title: '.$e->getErrorUserTitle().PHP_EOL
.'Error User Message: '.$e->getErrorUserMessage().PHP_EOL;
}
from facebook-php-business-sdk.
Ok, Thanks for your attention and wonderful answers.
I show you error codes as following,
Caught Exception : Invalid parameter
Code : 100
HTTP status Code : 500
Error Subcode:1359101
Error User Title : Add Payment Method
Error User Message : You need to have a valid payment method associated with your ad account
before you can create ads.
from facebook-php-business-sdk.
@airdomain, as mentioned above, you need to setup a payment method for your ad account.
You can do it here: https://www.facebook.com/ads/manager/billing/payment_methods/
from facebook-php-business-sdk.
Related Issues (20)
- Union types are only allowed since php8 HOT 2
- Exception: field 'id' is required Error HOT 3
- شخص ما أخترق حسابي الشخصي
- Normalizer.php strlen() must be of type string Problem
- Facebook Multi-Language Ads
- Syntax error in FB version v16.0.0 HOT 1
- The AdAccountFields enum does not currently implement the ACCOUNT_STATUS field. HOT 1
- Exception thrown without a stack frame in Unknown on line 0 HOT 1
- How to create a AAA advertisements above version 17
- Fix package installation instructions in README file
- Fff HOT 1
- error
- ad creative Url Tracking Params Update HOT 1
- OpenSSL SSL_connect: Connection reset by peer in connection to graph.facebook.com:443 Error HOT 1
- Static singletons used everywhere HOT 3
- Incorrect PHPDoc types HOT 4
- Not able to access Business User Insights for multiple users using the Instagram API. HOT 1
- Where is the TWO_SECOND_CONTINUOUS_VIDEO_VIEWS option? HOT 1
- [README.md] fix typo HOT 3
- I want group id but it says Error: (#100) Missing permissions
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from facebook-php-business-sdk.