RE: UserInterst Not adding to Campaigns

101 views
Skip to first unread message

Google Ads API Forum Advisor

unread,
Oct 25, 2021, 4:25:57 AM10/25/21
to binumat...@gmail.com, adwor...@googlegroups.com

Hi,

Thanks for posting your concern to us. I had to delete your initial post as it contained your logs. I am reposting below without the sensitive log information for reference :

Hello

When I try to add a UserInterest, I am getting the following error

61700784,  IsFault: 0, FaultMessage: "None"

 Request made: Host: "googleads.googleapis.com", Method: "/google.ads.googleads.v7.services.CampaignCriterionService/MutateCampaignCriteria", CustomerId: 1861700784, RequestId: "ib6vx9wry5cy7LynWcrgiA", IsFault: 1, FaultMessage: "["Invalid user interest criterion."]"

-------

Method Name: /google.ads.googleads.v7.services.CampaignCriterionService/MutateCampaignCriteria

Host: googleads.googleapis.com

Request:

{"customerId":"1861700784","operations":[{"create":{"campaign":"customers\/1861700784\/campaigns\/15043066062","negative":true,"userInterest":{"userInterestCategory":"customers\/1861700784\/userInterests\/730"}}}]}

Response

-------

Fault

-------

Status code: 3

Details: Request contains an invalid argument.

Failure: {"errors":[{"errorCode":{"criterionError":"INVALID_USER_INTEREST"},"message":"Invalid user interest criterion.","trigger":{"int64Value":"730"},"location":{"fieldPathElements":[{"fieldName":"operations","index":0},{"fieldName":"create"},{"fieldName":"user_interest"},{"fieldName":"user_interest_category"}]}}],"requestId":"ib6vx9wry5cy7LynWcrgiA"}

Any Idea why
?--



Upon checking the request body for a mutate of campaignCriteria, you’ve set invalid userInterest criterion. To resolve this issue, you may try to set the valid userInterest criterion. To get more information on user interest category, you may refer to this guide.

You may also refer to the following references to know the values that you can set for the user interest in the API request:


Hope this helps. Let us know if you have any further questions.

Regards,

Google Logo
Yasar
Google Ads API Team
 


ref:_00D1U1174p._5004Q2QEgfP:ref
Message has been deleted

Google Ads API Forum Advisor

unread,
Oct 26, 2021, 11:42:33 PM10/26/21
to binumat...@gmail.com, adwor...@googlegroups.com
Hi Binu,

Thank you for providing updates to your concern. Please refrain from posting generate logs on your end to the public forum for privacy purposes. If you want to share it to our team, then you can provide it via Reply privately to author option. If this option is not available, then send it instead on this email address googleadsa...@google.com.

I will need to delete your post again because of the generated logs on your end.

Moving forward, please note of the below statement and try this verification:
When retrieving UserInterest to set in UserInterestInfo, verify the availabilities[] are compatible with the campaign type. Some UserInterest options are only available for specific campaign types.

Let me know if you have further questions.

Regards,
Google Logo
Ernie John Blanca Tacata
Google Ads API Team
 


ref:_00D1U1174p._5004Q2QEgfP:ref

Binu Mathew

unread,
Oct 27, 2021, 4:07:17 AM10/27/21
to AdWords API and Google Ads API Forum
Any Example available ? any Language is fine, I checked and didnt find any

I working in PHP

Binu Mathew

unread,
Oct 27, 2021, 4:30:14 AM10/27/21
to AdWords API and Google Ads API Forum
$googleAdsRow->getUserInterest()->getAvailabilities(); 

Returning NULL

Google Ads API Forum Advisor

unread,
Oct 27, 2021, 4:50:03 PM10/27/21
to binumat...@gmail.com, adwor...@googlegroups.com
Hi Binu,

I work with Ernie and will assist you. Some User Interests will just have 'launched_to_all = true' to signify it's available in all campaign types. For help with PHP Client Library you may reach out to their issue tracker.

Regards,

Google Logo
Aryeh Baker
Google Ads API Team
 

 

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