ApiException

38 views
Skip to first unread message

Rav Shrikant

unread,
Nov 9, 2020, 4:47:45 AM11/9/20
to AdWords API and Google Ads API Forum
Hello Team,

I'm using this https://github.com/googleads/google-ads-php for creating the google adds. When I'm trying to add campaign then I'm getting the issue of fields are missing.

Please check the screenshot.


Rav Shrikant

unread,
Nov 9, 2020, 4:50:00 AM11/9/20
to AdWords API and Google Ads API Forum
The screenshot is not displaying so I'm getting this exception when calling addcampaign.php

ApiException was thrown with message '{ "message": "Request contains an invalid argument.", "code": 3, "status": "INVALID_ARGUMENT", "details": [ { "@type": 0, "data": "type.googleapis.com\/google.ads.googleads.v5.errors.GoogleAdsFailure" }, { "@type": 0, "data": [ { "errorCode": { "fieldError": "REQUIRED" }, "message": "The required field was not present.", "trigger": { "stringValue": "" }, "location": { "fieldPathElements": [ { "fieldName": "operations", "index": "0" }, { "fieldName": "create" }, { "fieldName": "amount_micros" } ] } }, { "errorCode": { "fieldError": "REQUIRED" }, "message": "The required field was not present.", "trigger": { "stringValue": "" }, "location": { "fieldPathElements": [ { "fieldName": "operations", "index": "0" }, { "fieldName": "create" }, { "fieldName": "name" } ] } } ] } ] }'.  

Google Ads API Forum Advisor Prod

unread,
Nov 9, 2020, 3:23:17 PM11/9/20
to ravsh...@gmail.com, adwor...@googlegroups.com

Hi Rav,

Thank you for reaching out. This error indicates that you did not set the required field amount_micros. Please have this field set up to avoid the error.

Thanks and regards,
Xiaoming, Google Ads API Team

Google Logo
Xiaoming
Google Ads API Team
 


ref:_00D1U1174p._5004Q278AuP:ref
Reply all
Reply to author
Forward
0 new messages