-
Notifications
You must be signed in to change notification settings - Fork 87
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
Can't create an Ad - Error: 3 INVALID_ARGUMENT #30
Comments
On further investigation, we have a hypothesis that the expanded ad entity isn't being filled in complete. Looking at a dump of the operation object: [ { wrappers_:
{ '1':
{ wrappers_:
{ '4':
{ wrappers_: null,
messageId_: undefined,
arrayIndexOffset_: -1,
array: [ 'customers/4674531019/adGroups/74761353488' ],
pivot_: 1.7976931348623157e+308,
convertedFloatingPointFields_: {} },
'5':
{ wrappers_:
{ '2':
[ { wrappers_: null,
messageId_: undefined,
arrayIndexOffset_: -1,
array: [ 'http://www.example.com' ],
pivot_: 1.7976931348623157e+308,
convertedFloatingPointFields_: {} } ],
'7':
{ wrappers_:
{ '3':
{ wrappers_: null,
messageId_: undefined,
arrayIndexOffset_: -1,
array: [ 'Buy your tickets now!' ],
pivot_: 1.7976931348623157e+308,
convertedFloatingPointFields_: {} } },
messageId_: undefined,
arrayIndexOffset_: -1,
array: [ <2 empty items>, [ 'Buy your tickets now!' ] ],
pivot_: 1.7976931348623157e+308,
convertedFloatingPointFields_: {} },
'23':
{ wrappers_: null,
messageId_: undefined,
arrayIndexOffset_: -1,
array: [ 'best ad ever' ],
pivot_: 1.7976931348623157e+308,
convertedFloatingPointFields_: {} } },
messageId_: undefined,
arrayIndexOffset_: -1,
array:
[ <1 empty item>,
[ [ 'http://www.example.com' ] ],
<2 empty items>,
3,
<1 empty item>,
[ <2 empty items>, [ 'Buy your tickets now!' ] ],
<2 empty items>,
[],
<5 empty items>,
[],
<6 empty items>,
[ 'best ad ever' ],
<2 empty items>,
[] ],
pivot_: 1.7976931348623157e+308,
convertedFloatingPointFields_: {} } },
messageId_: undefined,
arrayIndexOffset_: -1,
array:
[ <2 empty items>,
3,
[ 'customers/4674531019/adGroups/74761353488' ],
[ <1 empty item>,
[ [ 'http://www.example.com' ] ],
<2 empty items>,
3,
<1 empty item>,
[ <2 empty items>, [ 'Buy your tickets now!' ] ],
<2 empty items>,
[],
<5 empty items>,
[],
<6 empty items>,
[ 'best ad ever' ],
<2 empty items>,
[] ] ],
pivot_: 1.7976931348623157e+308,
convertedFloatingPointFields_: {} } },
messageId_: undefined,
arrayIndexOffset_: -1,
array:
[ [ <2 empty items>,
3,
[ 'customers/4674531019/adGroups/74761353488' ],
[ <1 empty item>,
[ [ 'http://www.example.com' ] ],
<2 empty items>,
3,
<1 empty item>,
[ <2 empty items>, [ 'Buy your tickets now!' ] ],
<2 empty items>,
[],
<5 empty items>,
[],
<6 empty items>,
[ 'best ad ever' ],
<2 empty items>,
[] ] ] ],
pivot_: 1.7976931348623157e+308,
convertedFloatingPointFields_: {} } ] The only field in the expanded text field (id: 7) begin populated is the description field (id: 3). I would have expected five fields to have been populated? This dump was found by adding |
Hi @madpilot, I've run some tests and you're definitely right, it looks like the ad is missing the Thanks for reporting this. Edit: The ad, with the missing expanded text ad fields: {
"resourceName": "",
"status": 3,
"adGroup": {
"value": "customers/4674531019/adGroups/74761353488"
},
"ad": {
"finalUrlsList": [
{
"value": "http://www.example.com"
}
],
"finalMobileUrlsList": [],
"urlCustomParametersList": [],
"type": 3,
"devicePreference": 0,
"urlCollectionsList": [],
"name": {
"value": "best ad ever"
},
"systemManagedResourceSource": 0,
"expandedTextAd": {
"description": {
"value": "Buy your tickets now!"
}
}
},
"adStrength": 0
} |
We've released a fix for this issue and published a new version - 1.3.0. It was due to some bad camel case conversion in our google-ads-node library. Make sure you update google-ads-api and your code above should now work! 👍 |
Hey there
I'm having difficulty creating an Ad for my Ad Group, I did notice there was an issue where you would pass 2 enums into a create mutation - maybe somewhat related.
I'm using the latest package v1.2.2,
Below is the stack
Here is my code which creates an Ad,
Not sure what argument is Invalid? Am I missing something here?
Help would be much appreciated,
Thanks :)
The text was updated successfully, but these errors were encountered: