What should I send to the AdGroupAdService if I want to create an Image Ad?

2016-11-04 Thread Farid el Nasire
 

The documentation is slightly cryptic when it comes to this field and there 
are no examples available anywhere. I've used the MediaService to upload an 
image to AdWords, I got a mediaId  back, I now want to "bind it" to an ad. 
With a text ad I used to send the following ADD operation:

{
'operator': 'ADD',
'operand': {
'xsi_type': 'AdGroupAd',
'adGroupId': arg['adgroup_id'],
'ad': {
'xsi_type': 'TextAd',
'finalUrls': [arg['final_url']],
'displayUrl': arg['display_url'],
'description1': arg['description1'],
'description2': arg['description2'],
'headline': arg['headline']
},
'status': 'ENABLED'
}
}

What do I send if I want to use the uploaded image with an ad? Specifically 
the "Image" field is a bit uncertain.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/ae98c9ad-f60a-4b5d-8f86-9af9688ac7c6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: API requests not working after token approval/reauthorization

2016-10-25 Thread Farid el Nasire
Got 1 step further by updating the customer id. I can now get a list of 
campaigns (which right now returns nothing) but now I am getting the 
following error:

*OperationAccessDenied.ADD_OPERATION_NOT_PERMITTED @ class 
campaignmgmt.campaign.MutateAction (ADD) requires CREATE_CAMPAIGN*



On Tuesday, October 25, 2016 at 12:58:13 PM UTC-4, Farid el Nasire wrote:
>
> We have been working on an application which uses the AdWords API to 
> create/manage campaigns. While we were waiting for our token to be approved 
> we used a test token, which allowed us to create campaigns/ad groups/ads 
> and whatnot in a safe sandboxed demo environment. This has been working 
> fine.
> Today we reauthorized our app to access our AdWords account using our 
> approved token, but we are suddenly running into errors. After closer 
> inspection I found out that the Adwords API is suddenly returning* 
> AuthorizationError.USER_PERMISSION_DENIED*.
> Any idea what we are doing wrong? I have already tried regenerating the 
> token and then reauthorizing again, there are no errors during 
> authorization.
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/0c23758f-6aa8-4b7b-865b-5c89c86c3182%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


API requests not working after token approval/reauthorization

2016-10-25 Thread Farid el Nasire
We have been working on an application which uses the AdWords API to 
create/manage campaigns. While we were waiting for our token to be approved 
we used a test token, which allowed us to create campaigns/ad groups/ads 
and whatnot in a safe sandboxed demo environment. This has been working 
fine.
Today we reauthorized our app to access our AdWords account using our 
approved token, but we are suddenly running into errors. After closer 
inspection I found out that the Adwords API is suddenly returning* 
AuthorizationError.USER_PERMISSION_DENIED*.
Any idea what we are doing wrong? I have already tried regenerating the 
token and then reauthorizing again, there are no errors during 
authorization.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/eb8d0b60-ed4d-441e-990f-419862a04d32%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Issue with setting Ad_Schedule on Ad Group

2016-10-06 Thread Farid el Nasire
Great, this fixed it, thanks so much!

On Thursday, October 6, 2016 at 3:43:01 PM UTC-4, Anthony Madrigal wrote:
>
> Hello,
>
> The reason you are seeing this error is because Ad Schedules can only be 
> created as a CampaignCriterion, not an AdGroupCriterion. You can see this 
> page 
>  
> for all the available criterion for each level.
>
> Cheers,
> Anthony
> AdWords API Team
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/add2d3c8-7148-4221-8e58-67b80e3cf2db%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Issue with setting Ad_Schedule on Ad Group

2016-10-05 Thread Farid el Nasire


Tried setting up a schedule for an ad group by doing the following:




But this returns:

> TypeNotFound: Type not found: 'ns0:Ad_Schedule'


Other criterias like keywords, placement and vertical work perfectly fine, 
but schedule for some reason doesn't. I've been using the following page in 
the doc as a 
reference: 
https://developers.google.com/adwords/api/docs/reference/v201607/AdGroupCriterionService.Criterion

What am I doing wrong here?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/96c365ab-46ec-4f81-b542-7a0da6b14d7e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.